#define _CRT_SECURE_NO_WARNINGS  1
#pragma warning(disable:6031)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;

bool isPrime(int num) {
    if (num < 2) return false;
    for (int i = 2; i <= sqrt(num); i++) {
        if (num % i == 0) return false;
    }
    return true;
}

int main() {
    string word;
    cin >> word;
    int count[26] = { 0 };
    for (char ch : word) {
        count[ch - 'a']++;
    }
    int maxn = 0, minn = 100;
    for (int i = 0; i < 26; i++) {
        if (count[i] > 0) {
            if (count[i] > maxn) maxn = count[i];
            if (count[i] < minn) minn = count[i];
        }
    }
    int diff = maxn - minn;
    if (isPrime(diff)) {
        cout << "Lucky Word" << endl;
        cout << diff << endl;
    }
    else {
        cout << "No Answer" << endl;
        cout << 0 << endl;
    }
    return 0;
}